//
//  YCMainTabBarItem.m
//  YCAdapterMode
//
//  Created by 安跃超 on 2018/12/14.
//  Copyright © 2018年 安跃超. All rights reserved.
//

#import "YCMainTabBarItem.h"

@implementation YCMainTabBarItem

- (void)setData:(id<YCMainModelAdapterProtocol>)data {
    _data = data;
    self.title = [data titleString];
    self.image = [UIImage imageNamed:[data iconNameString]];
    self.selectedImage = [UIImage imageNamed:[data iconSelectNameString]];
    [self setTitleTextAttributes:[data attributeNomal] forState:UIControlStateNormal];
    [self setTitleTextAttributes:[data attributeSelect] forState:UIControlStateSelected];
}

@end
